﻿/*
 * Created by SharpDevelop.
 * User: lebeda
 * Date: 28.2.2014
 * Time: 10:59
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;

namespace simpleExplorer.menuProviderImpl
{
    /// <summary>
    /// Description of AbstractMenuProvider.
    /// </summary>
        
    public abstract class AbstractMenuProvider: MenuItemProvider
    {
               
        protected MenuItem SelfMenuItem;        
        protected Dictionary<string, MenuItem> menuIndex = new Dictionary<string, MenuItem>();
        
        public MenuItem GetCommandByMenuItem(string caption)
        {
            return menuIndex[caption];
        }
        
        public MenuItem GetSelfMenuCreateDefinition()
        {
            return SelfMenuItem;
        }
        
        
        public abstract List<MenuItem> GetMenuItemList(string filter);
        
    }
}
